extends Node2D

## 护甲道具
## 护甲到达最大上线后, 该道具不会触发

func _ready():
	$Area2D.connect("body_entered", entered)


func entered(body):
	if body.name == "Player":
		var state = body.stateObj
		if state.getArmor() < state.maxArmor:
			body.stateObj.addArmorX(1)
			self.queue_free()
	
